package com.zc.timedown.service;


import com.baomidou.mybatisplus.extension.service.IService;

import com.zc.timedown.dto.UserLoginRequestDto;
import com.zc.timedown.domain.User;
import com.zc.timedown.vo.LifeSpanStatisticsVo;
import com.zc.timedown.vo.LoginVo;

/**
 * ClassName:UserService
 * Description:
 * DateTime: 2025/9/22 9:43
 * Author: zc
 * Version: 1.0
 */
public interface ApiUserService extends IService<User> {
    /**
     * 微信登录
     * @param userLoginRequestDto
     * @return
     */
    LoginVo login(UserLoginRequestDto userLoginRequestDto);

    /**
     * 获取用户信息
     * @param userId
     * @return
     */
    User getUserInfo(Long userId);

    /**
     * 更新用户信息
     * @param
     * @return
     */
    int updateUserInfo(User user);

    /**
     * 获取人生统计
     * @param userId
     * @return
     */

    LifeSpanStatisticsVo getLifeSpanStatistics(Long userId);
}
